<html>
<head>
<title>user.ets</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #808080;}
.s1 { color: #a9b7c6;}
.s2 { color: #bbb529;}
.s3 { color: #faa23d;}
.s4 { color: #e2da90;}
.s5 { color: #db7e9b;}
.s6 { color: #aa7dfc;}
.s7 { color: #b3e54c;}
</style>
</head>
<body bgcolor="#2b2b2b">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#606060" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
user.ets</font>
</center></td></tr></table>
<pre><span class="s0">/*个人中心*/</span>

<span class="s2">@</span><span class="s1">Entry</span>
<span class="s2">@</span><span class="s1">Component</span>
<span class="s1">export struct user</span><span class="s3">{</span>
  <span class="s2">@</span><span class="s1">Consume</span>
  <span class="s1">stackPath</span><span class="s4">: </span><span class="s1">NavPathStack</span>

  <span class="s1">build</span><span class="s5">() </span><span class="s3">{</span>
    <span class="s1">NavDestination</span><span class="s5">()</span><span class="s3">{</span>
      <span class="s0">/*Column(){ 
        Text('user') 
        Button('立即登录或注册').onClick(()=&gt;{this.stackPath.pushPathByName('register',undefined)}) 
      }*/</span>

      <span class="s1">List</span><span class="s5">()</span><span class="s3">{</span>
        <span class="s1">ListItem</span><span class="s5">()</span><span class="s3">{</span>

          <span class="s1">Column</span><span class="s5">()</span><span class="s3">{</span>

            <span class="s1">Stack</span><span class="s5">()</span><span class="s3">{</span>

              <span class="s1">Column</span><span class="s5">()</span><span class="s3">{</span>
                <span class="s1">Image</span><span class="s5">(</span><span class="s1">$r</span><span class="s5">(</span><span class="s6">'app.media.startIcon'</span><span class="s5">))</span><span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s6">'100%'</span><span class="s5">)</span>
              <span class="s3">}</span><span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s6">&quot;100%&quot;</span><span class="s5">)</span>
              <span class="s4">.</span><span class="s1">height</span><span class="s5">(</span><span class="s6">'60%'</span><span class="s5">)</span>
              <span class="s4">.</span><span class="s1">backgroundColor</span><span class="s5">(</span><span class="s6">'red'</span><span class="s5">)</span>

              <span class="s1">Column</span><span class="s5">()</span><span class="s3">{</span>

                <span class="s1">Row</span><span class="s5">()</span><span class="s3">{</span>
                  <span class="s1">Image</span><span class="s5">(</span><span class="s1">$r</span><span class="s5">(</span><span class="s6">'app.media.startIcon'</span><span class="s5">))</span><span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s6">'30%'</span><span class="s5">)</span>
                  <span class="s1">Row</span><span class="s5">()</span><span class="s3">{</span>

                    <span class="s1">Button</span><span class="s5">(</span><span class="s6">'编辑'</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">borderRadius</span><span class="s5">(</span><span class="s7">8</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">backgroundColor</span><span class="s5">(</span><span class="s6">'#4a4a4a'</span><span class="s5">)</span>
                    <span class="s1">Image</span><span class="s5">(</span><span class="s1">$r</span><span class="s5">(</span><span class="s6">'app.media.startIcon'</span><span class="s5">))</span><span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s7">20</span><span class="s5">)</span>
                  <span class="s3">}</span>

                <span class="s3">}</span><span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s6">&quot;100%&quot;</span><span class="s5">)</span>
                <span class="s4">.</span><span class="s1">height</span><span class="s5">(</span><span class="s6">'40%'</span><span class="s5">)</span>
                <span class="s4">.</span><span class="s1">margin</span><span class="s5">(</span><span class="s7">10</span><span class="s5">)</span>
                <span class="s4">.</span><span class="s1">justifyContent</span><span class="s5">(</span><span class="s1">FlexAlign</span><span class="s4">.</span><span class="s1">SpaceBetween</span><span class="s5">)</span>
                <span class="s4">.</span><span class="s1">alignItems</span><span class="s5">(</span><span class="s1">VerticalAlign</span><span class="s4">.</span><span class="s1">Top</span><span class="s5">)</span>
                <span class="s4">.</span><span class="s1">backgroundColor</span><span class="s5">(</span><span class="s6">'gray'</span><span class="s5">)</span>

                <span class="s1">Column</span><span class="s5">()</span><span class="s3">{</span>
                  <span class="s1">Row</span><span class="s5">()</span><span class="s3">{</span>
                    <span class="s1">Text</span><span class="s5">(</span><span class="s6">&quot;张三&quot;</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">fontSize</span><span class="s5">(</span><span class="s7">32</span><span class="s5">)</span>
                  <span class="s3">}</span>

                  <span class="s1">Row</span><span class="s5">()</span><span class="s3">{</span>
                    <span class="s1">Text</span><span class="s5">(</span><span class="s6">&quot;抖音号：&quot;</span><span class="s4">+</span><span class="s7">12345678</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">fontSize</span><span class="s5">(</span><span class="s7">15</span><span class="s5">)</span>
                  <span class="s3">}</span>

                  <span class="s1">Divider</span><span class="s5">()</span>

                  <span class="s1">Row</span><span class="s5">()</span><span class="s3">{</span>
                    <span class="s1">Text</span><span class="s5">(</span><span class="s6">&quot;个性签名&quot;</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">fontSize</span><span class="s5">(</span><span class="s7">15</span><span class="s5">)</span>
                  <span class="s3">}</span>

                  <span class="s1">Row</span><span class="s5">(</span><span class="s3">{</span><span class="s1">space</span><span class="s4">:</span><span class="s7">5</span><span class="s3">}</span><span class="s5">)</span><span class="s3">{</span>
                    <span class="s1">Button</span><span class="s5">(</span><span class="s6">&quot;年龄&quot;</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">borderRadius</span><span class="s5">(</span><span class="s7">0</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">backgroundColor</span><span class="s5">(</span><span class="s6">'#4a4a4a'</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">height</span><span class="s5">(</span><span class="s7">25</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s7">50</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">fontSize</span><span class="s5">(</span><span class="s7">9</span><span class="s5">)</span>
                    <span class="s1">Button</span><span class="s5">(</span><span class="s6">&quot;ip&quot;</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">borderRadius</span><span class="s5">(</span><span class="s7">0</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">backgroundColor</span><span class="s5">(</span><span class="s6">'#4a4a4a'</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">height</span><span class="s5">(</span><span class="s7">25</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s7">50</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">fontSize</span><span class="s5">(</span><span class="s7">9</span><span class="s5">)</span>
                    <span class="s1">Button</span><span class="s5">(</span><span class="s6">&quot;学校&quot;</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">borderRadius</span><span class="s5">(</span><span class="s7">0</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">backgroundColor</span><span class="s5">(</span><span class="s6">'#4a4a4a'</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">height</span><span class="s5">(</span><span class="s7">25</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s7">50</span><span class="s5">)</span>
                      <span class="s4">.</span><span class="s1">fontSize</span><span class="s5">(</span><span class="s7">9</span><span class="s5">)</span>
                  <span class="s3">}</span>

                  <span class="s1">Row</span><span class="s5">(</span><span class="s3">{</span><span class="s1">space</span><span class="s4">:</span><span class="s7">15</span><span class="s3">}</span><span class="s5">)</span><span class="s3">{</span>
                    <span class="s1">Text</span><span class="s5">(</span><span class="s6">&quot;获赞&quot;</span><span class="s5">)</span>
                    <span class="s1">Text</span><span class="s5">(</span><span class="s6">&quot;关注&quot;</span><span class="s5">)</span>
                    <span class="s1">Text</span><span class="s5">(</span><span class="s6">&quot;粉丝&quot;</span><span class="s5">)</span>
                  <span class="s3">}</span>
                  <span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s6">'100%'</span><span class="s5">)</span>
                  <span class="s4">.</span><span class="s1">justifyContent</span><span class="s5">(</span><span class="s1">FlexAlign</span><span class="s4">.</span><span class="s1">SpaceEvenly</span><span class="s5">)</span>

                <span class="s3">}</span><span class="s4">.</span><span class="s1">alignItems</span><span class="s5">(</span><span class="s1">HorizontalAlign</span><span class="s4">.</span><span class="s1">Start</span><span class="s5">)</span>



              <span class="s3">}</span><span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s6">&quot;100%&quot;</span><span class="s5">)</span>
              <span class="s4">.</span><span class="s1">height</span><span class="s5">(</span><span class="s6">'40%'</span><span class="s5">)</span>
              <span class="s4">.</span><span class="s1">backgroundColor</span><span class="s5">(</span><span class="s6">'green'</span><span class="s5">)</span>
              <span class="s4">.</span><span class="s1">zIndex</span><span class="s5">(</span><span class="s7">1</span><span class="s5">)</span>
              <span class="s4">.</span><span class="s1">justifyContent</span><span class="s5">(</span><span class="s1">FlexAlign</span><span class="s4">.</span><span class="s1">End</span><span class="s5">)</span>

            <span class="s3">}</span><span class="s4">.</span><span class="s1">width</span><span class="s5">(</span><span class="s6">&quot;100%&quot;</span><span class="s5">)</span>
            <span class="s4">.</span><span class="s1">alignContent</span><span class="s5">(</span><span class="s1">Alignment</span><span class="s4">.</span><span class="s1">Bottom</span><span class="s5">)</span>

          <span class="s3">}</span><span class="s4">.</span><span class="s1">alignItems</span><span class="s5">(</span><span class="s1">HorizontalAlign</span><span class="s4">.</span><span class="s1">Start</span><span class="s5">)</span>

        <span class="s3">}</span>

        <span class="s1">ListItem</span><span class="s5">()</span><span class="s3">{</span>

          <span class="s1">Tabs</span><span class="s5">()</span><span class="s3">{</span>
            <span class="s1">TabContent</span><span class="s5">()</span><span class="s3">{</span>

            <span class="s3">}</span><span class="s4">.</span><span class="s1">tabBar</span><span class="s5">(</span><span class="s6">'作品'</span><span class="s5">)</span>

            <span class="s1">TabContent</span><span class="s5">()</span><span class="s3">{</span>

            <span class="s3">}</span><span class="s4">.</span><span class="s1">tabBar</span><span class="s5">(</span><span class="s6">'动态'</span><span class="s5">)</span>

            <span class="s1">TabContent</span><span class="s5">()</span><span class="s3">{</span>

            <span class="s3">}</span><span class="s4">.</span><span class="s1">tabBar</span><span class="s5">(</span><span class="s6">'喜欢'</span><span class="s5">)</span>

          <span class="s3">}</span>
        <span class="s3">}</span>
      <span class="s3">}</span><span class="s4">.</span><span class="s1">height</span><span class="s5">(</span><span class="s6">&quot;100%&quot;</span><span class="s5">)</span>
    <span class="s3">}</span><span class="s4">.</span><span class="s1">hideTitleBar</span><span class="s5">(</span><span class="s1">true</span><span class="s5">)</span>
  <span class="s3">}</span>
<span class="s3">}</span>


<span class="s2">@</span><span class="s1">Builder</span>
<span class="s1">function builduser</span><span class="s5">()</span><span class="s3">{</span>
  <span class="s1">user</span><span class="s5">()</span>
<span class="s3">}</span></pre>
</body>
</html>